﻿@model List<PessMvc.Models.ExpertJudgeModel>

@{
    var grid = new WebGrid(Model,rowsPerPage:50);
}

<style type="text/css">
    .col1 {width:70px !important;}
    .col2 {}
    .col3 {
    }
    .col4 {}
    .col5 {}
    .col6 {}
    .col7 {
    }
    .col8 {
        width: 80px;
    }
    .col9 {
        width: 80px;
    }
    .thAction {
        width:40px !important;
        max-width: 40px !important;
        border-left: none !important;
        border-right: none !important;
    }
</style>
@grid.GetHtml(columns: grid.Columns(
grid.Column("SerialNumber", header: "评委编号", style:"col1"),
grid.Column("RealName", header: "真实姓名", style:"col2"),
grid.Column("Gender", header: "性别", style:"col3", format: @<text>@Utility.TranslateGender(item.Gender)</text>),
grid.Column("SSID",header:"身份证号"),
grid.Column("Birthdate", header: "出生年月", style:"col4"),
grid.Column("Phone", header: "电话", style:"col5"),
grid.Column("ExpertGroupCallsign", header: "评委组", style:"col6"),
grid.Column("ExpertGroupID", header: "ID", style:"col7"),
grid.Column(format: (item) => Html.ActionLink("编辑", "Edit", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl, activityID = ViewData["ActivityID"] }, null), header: "", style: "thAction"),
grid.Column(format: (item) => Html.ActionLink("移除", "Dismiss", "ExpertJudge", new { SerialNumber = item.SerialNumber, expertGroupID = ViewData["ExpertGroupID"], activityID = ViewData["ActivityID"], returnUrl = HttpContext.Current.Request.RawUrl }, null), header: "", style: "thAction")
//grid.Column(format: (item) => Html.ActionLink("删除", "Delete", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl }, null))
))

